package sisi.invoices;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * Invoicecounter.java - The persistent class for the <i>invoicecounter database table</i>. 
 * @author Pedro Gonzalez pedro@sisisoftware.it
 * @author Claudio Pelosi claudio@sisisoftware.it
 * @author SISI Software S.n.c. - www.sisisoftware.it
 * @version 1.0, 07/12/2014
 * 
 */
@Entity
@Table(name="invoicecounter")
public class Invoicecounter implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="INVOICECOUNTER_ID_GENERATOR", sequenceName="INVOICECOUNTERSEQ", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="INVOICECOUNTER_ID_GENERATOR")
	@Column(unique=true, nullable=false)
	private Integer id;

	private Timestamp dtinv;

	private Integer invnumb;

	private Integer key;

	public Invoicecounter() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Timestamp getDtinv() {
		return this.dtinv;
	}

	public void setDtinv(Timestamp dtinv) {
		this.dtinv = dtinv;
	}

	public Integer getInvnumb() {
		return this.invnumb;
	}

	public void setInvnumb(Integer invnumb) {
		this.invnumb = invnumb;
	}

	public Integer getKey() {
		return this.key;
	}

	public void setKey(Integer key) {
		this.key = key;
	}

}